home *** CD-ROM | disk | FTP | other *** search
- Path: GIMLI.genias.de!usenet
- From: Andreas Haas <andreas>
- Newsgroups: comp.lang.c
- Subject: Re: rebooting computer in C.
- Date: 1 Feb 1996 16:36:23 GMT
- Organization: GENIAS Software GmbH
- Message-ID: <4eqq67$gj0@GIMLI.genias.de>
- References: <4emjjj$713@donatello.leonardo.net>
- NNTP-Posting-Host: thorin.genias.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.2 sun4c)
- X-URL: news:4emjjj$713@donatello.leonardo.net
-
- DavidJo@zianet.com (DavidJo) wrote:
- >How would I go about making the computer reboot from inside a C
- >program?
- >
-
- Under DOS/Windows s.th. like ...
-
- .
- .
- .
-
- char *s = NULL;
-
- for (;;)
- *s++ = random(256);
-
- .
- .
- .
-
- .. should work 8)
-
- Under SunOS I found
-
- #include <sys/reboot.h>
-
- reboot(howto, [ bootargs ] )
- int howto;
- char *bootargs;
-
- in the man pages
-
-
-
- >Any help would be great.
- >
- >Thank You
- >
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Andreas Haas
- GENIAS Software GmbH | Email: andreas@genias.de
- Erzgebirgstr. 2 B | Tel.: ++49 +9401 9200-0/41
- D-93073 Neutraubling/Germany | FAX: ++49 +9401 9200-92
- http://www.genias.de |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-